Skip to content

Fix MDA shuffle under pandas copy-on-write#6

Merged
hamid-arian merged 1 commit into
mainfrom
fix/mda-pandas-cow
Jun 11, 2026
Merged

Fix MDA shuffle under pandas copy-on-write#6
hamid-arian merged 1 commit into
mainfrom
fix/mda-pandas-cow

Conversation

@hamid-arian

Copy link
Copy Markdown
Member

rng.shuffle on a column view raises 'array is read-only' with pandas >= 3 (py3.11/3.12 CI). Shuffle a copy instead. See CHANGELOG.

rng.shuffle on a DataFrame column view raises 'ValueError: array is
read-only' with pandas >= 3.0 (CoW default). Shuffle a copy, assign back.
Failed on CI py3.11/3.12 (which resolve pandas 3+); py3.9/3.10 got
pandas 2.x and passed.
@hamid-arian hamid-arian merged commit c855f77 into main Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant